using System;
using System.Collections.Generic;

// Excel文件名: WindowDef.xlsx

namespace TableDef {

public class t_windowdef : ResDataBase
{
    /// <summary>
    /// UI名
    /// -----------------------------
    /// UI名
    /// </summary>
    public string m_strPanelName;

    /// <summary>
    /// 标记缓存的UI不计入缓存上限计数
    /// -----------------------------
    /// 缓存UI
    /// </summary>
    public bool m_bCache;

    /// <summary>
    /// 预加载的UI在加载场景时一并加载了
    /// -----------------------------
    /// 预加载
    /// </summary>
    public bool m_bPreload;

    /// <summary>
    /// uiprefab路径
    /// -----------------------------
    /// uiprefab路径
    /// </summary>
    public string m_strPrefabPath;

    /// <summary>
    /// 所在互斥组，-1就是不互斥
    /// -----------------------------
    /// 互斥组
    /// </summary>
    public int m_nToggleGroup;

    /// <summary>
    /// 所在大层
    /// 0、
    /// 1、战斗内直接打开的
    /// 2、普通界面
    /// 3、导航条
    /// 4、弹窗、新手引导
    /// 5、网络弹窗
    /// 6、一句话提示
    /// -----------------------------
    /// 大层
    /// </summary>
    public int m_nLayer;


    
    protected override void OnInit()
    {
        base.OnInit();
        m_strPanelName = GetString("panelName");
        m_bCache = GetBool("cache");
        m_bPreload = GetBool("preload");
        m_strPrefabPath = GetString("prefabPath");
        m_nToggleGroup = GetInt("toggleGroup");
        m_nLayer = GetInt("Layer");

    }
}

}
